package View;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JInternalFrame;

import javax.swing.JOptionPane;

import Enums.MessageType;

public abstract class BaseView extends JInternalFrame implements MouseListener, ActionListener
{
	private static final long serialVersionUID = 1L;
	
	public abstract void clean();
	
	//Manejadores de eventos
	public void mouseClicked(MouseEvent e)
	{
	}
	
	public void mouseEntered(MouseEvent arg0) 
	{
	}

	public void mouseExited(MouseEvent arg0) 
	{
	}

	public void mousePressed(MouseEvent arg0) 
	{
	}

	public void mouseReleased(MouseEvent arg0) 
	{
	}

	public void actionPerformed(ActionEvent e) 
	{
	}
	
	public void showMessage(String message , MessageType messageType)
	{
		JOptionPane.showMessageDialog(this, message, "", messageType.ordinal());
	}
}
